package com.itlong.cloud.POJO.VO.app.old;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <desc>
 *     旧版APP_用户信息响应VO，等同旧系统中UserDto对象
 * </desc>
 * @createDate 2017/09/21
 */
@Getter
@Setter
public class AppOldUserInfoVO implements Serializable {
    private String userId;     //用户id
    private String userName;   //姓名
    private String phoneNo;     //用户手机号
    private String parentPhonetNo; //授权人手机号码
    private String photoUrl;       //头像地址
    private String token;       //请求凭证
    private String resources;//权限地址，多个权限用逗号隔开
    private String projectIds;//用户所属项目id
    private String projectNames; //用户所属项目名称
    private String userAuth; //项目权限级别
    private String ownerAddress;//是否含有业主地址  Y 有|N 无
    private String userTypeInProject; //用户在小区里面的角色
    private String pubKeys; //用户所属项目的项目密钥
    private String serverUrls; //用户所属项目的云端服务器地址

    private String currentProjectId;
    private String currentProjectName;
    private String aroundProjectIds;
    private String aroundProjectNames;
    private String centerPhoneNo;//中心分机电话

    private Integer userType;
    private String setInfo1;//存储用户设备开放方式配置
    private String setInfo2;//用户可以添加的授权人数。
    private String setInfo3;//预留
    private String setInfo4;//预留
    private String setInfo5;//预留

    private String sex;
    private String birthday;
    private String nickName;
    private String userMemo; //用户备注

    private String authMaxNum;
    private String authNum;

    private String isAllowPhone;
    private String valiDate;//有效期(到期时间。当前时间戳+token的有效期)
    private String doorPwd;//开门密码(返回给App。当业主的地址下对应着云对讲设备会返回该数据，否则为空。密码会跟着业主走，业主走后原房间密码会被去掉，新房间密码使用原密码)
    private String turnServer; //穿透服务器地址

    private Integer userStatus; //用户状态,0删除 1正常 2禁用

    public AppOldUserInfoVO(){

    }

    public AppOldUserInfoVO(String phoneNo){
        this.phoneNo = phoneNo;
    }
    public AppOldUserInfoVO(String phoneNo,String token){
        this.phoneNo = phoneNo;
        this.token = token;
    }

    public AppOldUserInfoVO(String phoneNo,String token,String currentProjectId,String currentProjectName,String userName,String nickName,String sex,String birthday,String userMemo){
        this.phoneNo = phoneNo;
        this.token = token;
        this.currentProjectId = currentProjectId;
        this.currentProjectName = currentProjectName;
        this.userName = userName;
        this.nickName = nickName;
        this.sex = sex;
        this.birthday = birthday;
        this.userMemo = userMemo;
    }










}
